package com.gaowl.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gaowl.common.utils.PageUtils;
import com.gaowl.gulimall.product.entity.ProductAttrValueEntity;
import com.gaowl.gulimall.product.vo.BaseAttrs;

import java.util.List;
import java.util.Map;

/**
 * spu属性值
 *
 * @author gaowl
 * @email gaowl@stu.jiangnan.edu.cn
 * @date 2021-03-11 11:39:16
 */
public interface ProductAttrValueService extends IService<ProductAttrValueEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void batchSaveSpuBaseAttrs(Long spuId, List<BaseAttrs> baseAttrs);

    List<ProductAttrValueEntity> getBaseAttrListForSpu(Long spuId);

    void updateAttrForSpu(Long spuId, List<ProductAttrValueEntity> productAttrValueEntityList);
}

